package com.bgrconsulting.stockorderentry.service.converter;

import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.bgrconsulting.stockorderentry.service.model.RateLimitStatus;


@XmlRootElement(name = "rateLimitStatus")
public class RateLimitStatusConverter {
	private RateLimitStatus enity = null;
	
	public RateLimitStatusConverter() {
		enity = new RateLimitStatus();
	}
	
	public RateLimitStatusConverter(RateLimitStatus rateLimitStatus) {
		enity = rateLimitStatus;
	}
	
	 @XmlElement(name = "customerKey")
	public String getOathurCustomerKey() {
		return enity.getOathurCustomerKey();
	}
	
	 @XmlElement(name = "limitIntervalInSeconds")
	public int getLimitIntervalInSeconds() {
		return enity.getLimitIntervalInSeconds();
	}
	
	 @XmlElement(name = "requestLimit")
	public int getRequestLimit() {
		return enity.getRequestLimit();
	}
	
	 @XmlElement(name = "requestRemaining")
	public int getRequestRemaining() {
		return enity.getRequestRemaining();
	}
	
	 @XmlElement(name = "resetTime")
	public Date getResetTime() {
		return enity.getResetTime();
	}
	
	 @XmlElement(name = "resetTimeEpochSeconds")
	int getResetTimeEpochSeconds() {
		return enity.getResetTimeEpochSeconds();
	}
}


